/*
 *  NullWaveTable.cpp
 *  SoundController0002
 *
 *  Created by jiro on 10/11/22.
 *  Copyright 2010 jiro music. All rights reserved.
 *
 */

#include "NullWaveTable.h"

namespace sc 
{
	NullWaveTable* NullWaveTable::instance = NULL;

	NullWaveTable::NullWaveTable()
		: WaveTable( WaveTable::Type_Null, 0, 1.0 )
	{}

	NullWaveTable::~NullWaveTable()
	{}
	
	NullWaveTable* NullWaveTable::GetInstance()
	{
		if ( instance == NULL )
		{
			instance = new NullWaveTable();
		}
		return instance;
	}

	double NullWaveTable::operator [] ( double time ) const 
	{
		return 0;
	}
		
	double NullWaveTable::GetFrequency() const
	{
		return 0;
	}

	bool NullWaveTable::IsNull() const
	{
		return true;
	}
	
}
